// 信息通知
import { ajaxService } from '@/utils/request';

const env = import.meta.env;
const baseURL = env.VITE_APP_BASE_URL;

// 待办页面
export function getBacklogCenter(params: any) {
  return ajaxService({
    url: '/lke_message/backlog/page',
    method: 'get',
    baseURL,
    params
  });
}

// 新增待办
export function postBacklogMessag(data: any) {
  return ajaxService({
    url: '/lke_message/backlog/add',
    method: 'post',
    baseURL,
    data
  });
}

// 待办完成
export function putMsgApiMessag(data: any) {
  return ajaxService({
    url: '/lke_message/backlog/state',
    method: 'put',
    baseURL,
    data
  });
}

// 删除待办
export function delBacklogMessag(data: any) {
  return ajaxService({
    url: '/lke_message/backlog/del',
    method: 'delete',
    baseURL,
    data
  });
}
